/ Assembly List / LJCNetCommon / CodeTokenizer / IsDataValue

Namespace - LJCNetCommon


Parameters
text - The text value.

Returns

True if a data value, otherwise false.

Syntax

C#
public Boolean IsDataValue(String text)

Check if the text is a Data value. (E)

Example

C#
using LJCNetCommon;

var tokenizer = new CodeTokenizer();
string text = " string text = \"DataValue\"";
tokenizer.SetTokens(text);
short tokenIndex = 3;
string token = tokenizer.GetToken(tokenIndex);

int prefixCount = 0;
string stripToken = tokenizer.StripQualifier(token, ref prefixCount);
bool isDataValue = tokenizer.IsDataType(stripToken);
// Value isDataValue = true.

Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.